from xlwt import Workbook

wb=Workbook('utf-8')
sheet=wb.add_sheet('部门表')
sheet.write(0,0,'部门编号')
wb.save(r'H:\python\write_excle\excle1.xls')